import request from '@/utils/request'

// 查询维修费设置列表
export function listSettingRepairFee(query) {
  return request({
    url: '/vanger/settingRepairFee/list',
    method: 'get',
    params: query
  })
}

// 查询维修费设置列表（联合）
export function listUnion(query) {
  return request({
    url: '/vanger/settingRepairFee/listUnion',
    method: 'get',
    params: query
  })
}


// 查询维修费设置详细（联合）
export function getInfoUnion(id) {
  return request({
    url: '/vanger/settingRepairFee/getInfoUnion/' + id,
    method: 'get'
  })
}

// 查询维修费设置详细
export function getSettingRepairFee(id) {
  return request({
    url: '/vanger/settingRepairFee/' + id,
    method: 'get'
  })
}

// 新增维修费设置
export function addSettingRepairFee(data) {
  return request({
    url: '/vanger/settingRepairFee',
    method: 'post',
    data: data
  })
}

// 修改维修费设置
export function updateSettingRepairFee(data) {
  return request({
    url: '/vanger/settingRepairFee',
    method: 'put',
    data: data
  })
}

// 删除维修费设置
export function delSettingRepairFee(id) {
  return request({
    url: '/vanger/settingRepairFee/' + id,
    method: 'delete'
  })
}
